package com.donzell.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * EcsGoodsType entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ecs_goods_type")
public class EcsGoodsType implements java.io.Serializable {

	// Fields

	private Short catId;
	private String catName;
	private Boolean enabled;
	private String attrGroup;

	// Constructors

	/** default constructor */
	public EcsGoodsType() {
	}

	/** full constructor */
	public EcsGoodsType(String catName, Boolean enabled, String attrGroup) {
		this.catName = catName;
		this.enabled = enabled;
		this.attrGroup = attrGroup;
	}

	// Property accessors
	@Id
	@SequenceGenerator(name = "SHOP_IDENTIFIER_IDENT_ID_GENERATOR", sequenceName = "SHOP_ID_SEQUENCE", allocationSize = 1)
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SHOP_IDENTIFIER_IDENT_ID_GENERATOR")
	@Column(name = "cat_id", unique = true, nullable = false)
	public Short getCatId() {
		return this.catId;
	}

	public void setCatId(Short catId) {
		this.catId = catId;
	}

	@Column(name = "cat_name", nullable = false, length = 60)
	public String getCatName() {
		return this.catName;
	}

	public void setCatName(String catName) {
		this.catName = catName;
	}

	@Column(name = "enabled", nullable = false)
	public Boolean getEnabled() {
		return this.enabled;
	}

	public void setEnabled(Boolean enabled) {
		this.enabled = enabled;
	}

	@Column(name = "attr_group", nullable = false)
	public String getAttrGroup() {
		return this.attrGroup;
	}

	public void setAttrGroup(String attrGroup) {
		this.attrGroup = attrGroup;
	}

}